 
<div id="toast" style="  display: none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-icon-success-no-circle weui-icon_toast"></i>
            <p class="weui-toast__content"><span id="content">请先选择设备！ </span><br><span id="desc"></span></p>
        </div>
    </div>
<div id="loadingToast" style="display:none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-loading weui-icon_toast"></i>
            <p class="weui-toast__content">数据加载中</p>
        </div>
    </div>

<style>
#toast ,#loadingToast {
 
    z-index: 102;
    position: absolute;
}
#toast #icon{
   font-size:60px;
}
#toast #icon:before{
   font-size:50px;
}
</style>
<script>
function showLoadingToast(show){
	var tar=$("#loadingToast");
 
	if(show)
		tar.show();
	else
		tar.hide();
}
var iconType={"err":"weui_icon_warn","success":"weui_icon_success"}
function showTipInfo(msg,func,dfunc){
	var  desc="操作失败！";
	var icon="weui_icon_warn";
	$("#toast #desc").html("");
	if(msg.success==true){
		desc="操作成功！";
		icon="weui_icon_success";
	}
		
    $("#icon").attr("class",icon);
	$("#toast #content").html(desc);
 
	$("#toast #desc").html(msg.desc);

	$("#toast").show();
	setTimeout(function(){
		$("#toast").hide();	
		$("#toast #desc").html("");
		dfunc();
	},2000);
}
</script>